package webar.games;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;


public class Dialog {
    public static void alert(Context context, String title, String message) {
    	Dialog.alert(context, title, message,null);  
    }
    
    public static void alert(Context context, String title, String message,DialogButton closeButton) {
    	AlertDialog.Builder builder = new AlertDialog.Builder(context);
    	builder.setTitle(title);
    	builder.setMessage(message);
    	
    	if (closeButton != null)
    	{
    		builder.setNeutralButton(closeButton.getText(), closeButton.getListener());
    	}
    	
    	builder.show();
    		
    }
    
    public static void confirm(Context context ,String title,String message){
    	
    }
    
    
}

